package com.wenson.behavior.command;

/**
 * @ClassName: SwitchCommand
 * @Author: luowangcheng
 * @Date: 2024/6/16 12:43
 * @Description:
 */
public class SwitchCommand implements Command {
    private Bulb bulb;

    public SwitchCommand(Bulb bulb) {
        this.bulb = bulb;
    }

    @Override
    public void exe() {
        bulb.on();
    }

    @Override
    public void unexe() {
        bulb.off();
    }
}
